
public class Java_3 {
	public static void main(String[] args) {
		int a[] = new int[10];

		for (int i = 1; i < a.length + 1; i++) {
			System.out.print(i * i + "\t");
		}
		System.out.println("\n");
		for (int i = a.length; i > 0; i--) {
			System.out.print(i * i + "\t");
		}
	}
}
